<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>响应式布局</title>
    <style>
        body{
            display: flex;
  justify-content: space-between;

        }

        .A{
            background-color: aqua;
            position:absolute;
            left: 50%;
            top: 10%;
            text-align: center;
            width: 400px;
            height: 50px;
            transform: translate(-50% , -50%);
            flex: 1 1 auto;
            z-index: 2;
        }
        .box1{
            background-color: rgb(234, 255, 0);
            position:absolute;
            left: 50%;
            top: 50%;
            text-align: center;
            width: 600px;
            height:300px;
            transform: translate(-50% , -50%);
            flex: 1 1 auto;
        }
        .task1{}
        .task2{}
        .task3{}
        .task4{}
    </style>
</head>
<body>

    <p class="A">响应式布局</p>
    <div class="box1">

    <p class="task1">task1</p>
    <p class="task1">task2</p>
    <p class="task1">task3</p>
    <p class="task1">task4</p>

    </div>
    
   

    
</body>
</html>